import {ref} from 'vue'
import { defineStore } from 'pinia'
import {getCategory} from "@/apis/layoutApi.js";


export const useCategoryStore = defineStore('category', () => {
  const categoryList = ref([])
  const getCategoryList = async () => {
    const response= await getCategory()
    categoryList.value = response.result
  }

  return { categoryList, getCategoryList }
})
